package com.atguigu.gmall.product.client.impl;

import com.alibaba.fastjson.JSONObject;
import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.product.*;
import com.atguigu.gmall.product.client.ProductFeignClient;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Component
public class ProductFeignClientImpl implements ProductFeignClient {
    @Override
    public Result<SkuInfo> getSkuInfo(Long skuId) {
        return Result.<SkuInfo>fail().message("执行失败");
    }

    @Override
    public Result<BaseCategoryView> getCategoryView(Long category3Id) {
        return Result.<BaseCategoryView>fail().message("执行失败");
    }

    @Override
    public Result<BigDecimal> getSkuPrice(Long skuId) {
        return Result.<BigDecimal>fail().message("执行失败");
    }

    @Override
    public Result<List<SpuSaleAttr>> getSpuSaleAttrListCheckBySku(Long skuId, Long spuId) {
        return Result.<List<SpuSaleAttr>>fail().message("执行失败");
    }

    @Override
    public Result<Map<String, Long>> getSkuValueIdsMap(Long spuId) {
        return Result.<Map<String, Long>>fail().message("执行失败");
    }

    @Override
    public Result<List<JSONObject>> getAllCategoryForPortal() {
        return Result.<List<JSONObject>>fail().message("执行失败");
    }

    @Override
    public Result<BaseTrademark> getTrademarkById(Long id) {
        return Result.<BaseTrademark>fail().message("执行失败");
    }

    @Override
    public Result<List<BaseAttrInfo>> getAttrListBySkuId(Long skuId) {
        return Result.<List<BaseAttrInfo>>fail().message("执行失败");
    }
}
